package com.longxiao.vo;

import com.longxiao.validator.anno.ValiCnMobile;
import com.longxiao.validator.anno.ValiNotBlank;
import com.longxiao.validator.anno.ValiNumber;

/**
 * Created by yusong on 2017/5/25.
 * 注册手机号
 */
public class RegisterMobileVo {
    //用户类型 用户类型（1：学生，2：老师）
    @ValiNumber(ref = {1, 2}, err = "请输入正确的用户类型")
    private Integer userType;
    //密码
    @ValiNotBlank(err = "请输入密码")
    private String password;
    //手机号
    @ValiCnMobile(err = "请输入正确的手机号码")
    private String mobile;
    //验证码
    private String validCode;

    @Override
    public String toString() {
        return "RegisterMobileVo{" +
                "userType=" + userType +
                ", password='" + password + '\'' +
                ", mobile='" + mobile + '\'' +
                ", validCode='" + validCode + '\'' +
                '}';
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getValidCode() {
        return validCode;
    }

    public void setValidCode(String validCode) {
        this.validCode = validCode;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }
}
